package com.todo.biz.iface.frontend;

import com.todo.biz.iface.frontend.request.InsertCommendParam;
import com.todo.biz.iface.frontend.request.QueryCommentByParentIdParam;
import com.todo.biz.iface.frontend.request.RemoveCommentByIdParam;
import com.todo.biz.iface.frontend.response.CommentVO;
import com.todo.common.common.entity.response.BizPageResponse;
import com.todo.common.common.entity.response.BizResponse;

/**
 * @author azhebuxing
 * @date 2024/5/10 16:19
 * @description
 */
public interface CommentFrontendIface {

    /**
     * 新增评论
     *
     * @param param
     * @return
     */
    BizResponse<Boolean> insertComment(InsertCommendParam param);

    /**
     * 根据主键删除评论
     *
     * @param param
     * @return
     */
    BizResponse<Boolean> removeCommentById(RemoveCommentByIdParam param);

    /**
     * 根据父Id查询评论列表
     *
     * @param param
     * @return
     */
    BizPageResponse<CommentVO> queryCommentByParentId(QueryCommentByParentIdParam param);
}
